# -*- coding: utf-8 -*-
# @Time        :2024/10/14 下午5:49
# @Author      :文刀水寿
# @File        : 13_多态.py
"""
 @Description :
"""


# 演示抽象类
class AC:
    def cool_wind(self):
        """制冷"""
        pass

    def hot_wind(self):
        """制热"""
        pass

    def swing_l_r(self):
        """左右摆风"""
        pass


class Midea(AC):

    def cool_wind(self):
        print("美的空调制冷")

    def hot_wind(self):
        print("美的空调制热")

    def swing_l_r(self):
        print("美的空调左右摆风")


class GREE(AC):

    def cool_wind(self):
        print("格力空调制冷")

    def hot_wind(self):
        print("格力空调制热")

    def swing_l_r(self):
        print("格力空调左右摆风")


def make_cool(ac: AC):
    ac.cool_wind()


midea_ac = Midea()
gree_ac = GREE()

make_cool(midea_ac)
make_cool(gree_ac)
